\def\StruktBoxHeight{6}
\begin{struktogramm}(110,137)[\underline{wandKollisioncheckData(Atom a, boolean checkOnly)}]
    \assign[\StruktBoxHeight]{x, y, r aus Atom a laden}
    % X
    \ifthenelse[12]{2}{1}{\(x < r \vee x + r > atompanel.hoehe\)}{ja}{nein}
        \ifthenelse[12]{1}{1}{checkOnly}{true}{false}
            \return{true}
        \change    
        \ifend
    \change        
    \ifend
    \assign[\StruktBoxHeight]{Kehre x-Richtung des Atoms um}
    
    % Y
    \ifthenelse[12]{2}{1}{\(y < r \vee y + r > atompanel.hoehe\)}{ja}{nein}
        \ifthenelse[12]{1}{1}{checkOnly}{true}{false}
            \return{true}
        \change    
        \ifend
    \change        
    \ifend
    \assign[\StruktBoxHeight]{Kehre y-Richtung des Atoms um}
    
    % X
    \ifthenelse[12]{2}{1}{ \(x < r\)}{ja}{nein}
        \assign[\StruktBoxHeight]{a.x \(\leftarrow\) a.x + r - x}
    \change    
    \ifend
    \ifthenelse[12]{2}{1}{\(x + r > atompanel.breite\)}{ja}{nein}
        \assign[\StruktBoxHeight]{a.x \(\leftarrow\) a.x - x + r - atompanel.breite}
    \change
    \ifend
  
    % Y
    \ifthenelse[12]{2}{1}{ \(y < r\)}{ja}{nein}
        \assign[\StruktBoxHeight]{a.y \(\leftarrow\) a.y + r - y}
    \change
    \ifend
    \ifthenelse[12]{2}{1}{\(y + r > atompanel.breit\)}{ja}{nein}
        \assign[\StruktBoxHeight]{a.y \(\leftarrow\) a.y - y + r - atompanel.breite}
    \change    
    \ifend
    \return{false}
\end{struktogramm}